package com.dragon.modules.yuegou.model.order;

import com.dragon.modules.yuegou.entity.order.OrderJingdongEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 订单关联京东订单模型类
 * 
 * @author pbuilder generated
 * @date 2022-01-14 09:50:49
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class OrderJingdong extends OrderJingdongEntity {

	/**
	 * 构造一个空订单关联京东订单模型对象
	 */
	public OrderJingdong(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个订单关联京东订单模型对象
	 * 
	 * @param entity 实体对象
	 */
	public OrderJingdong(OrderJingdongEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个订单关联京东订单模型对象
	 * 
	 * @param other 其它对象
	 */
	public OrderJingdong(OrderJingdong other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public OrderJingdong id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public OrderJingdong orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public Long getJdOrderNo() {
    	return jdOrderNo;
    }

    /**
	 * 设置京东订单号
	 * 
	 * @param jdOrderNo 京东订单号
	 * @return 当前对象
	 */
    public OrderJingdong jdOrderNo(Long jdOrderNo) {
    	this.jdOrderNo = jdOrderNo;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public OrderJingdong createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

}
